﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WebApi.Core.Model
{
    [SugarTable("T_RefreshTokens")]
    public class RefreshToken
    {
        [SugarColumn(IsPrimaryKey = true)]
        public string Token { get; set; }

        public string Jti { get; set; } // 关联的JWT ID

        public string UserId { get; set; }

        public DateTime CreateTime { get; set; }

        public DateTime ExpiryTime { get; set; }

        public bool IsUsed { get; set; }

        public bool IsRevoked { get; set; }

    }
}
